<?php


namespace App\Dao;


use App\Model\CooperativeRole;
use Hyperf\Database\Model\Builder;

class CooperativeRoleDao extends AbstractDao
{
    public function where(array $where): Builder
    {
        $builder = CooperativeRole::query();

        foreach ($where as $key => $value) {
            switch ($key){
                default:
                    $builder->where($key,$value);
                    break;
            }
        }

        return $builder;
    }
}